﻿#region Copyright(C) 2012 NCS Pte. Ltd. All rights reserved.

// ==================================================================================================
// Copyright(C) 2012 NCS Pte. Ltd. All rights reserved.
//
// SYSTEM NAME	:   iConnect.Azure Application Framework
// COMPONENT ID :   NCS.IConnect.Azure.Diagnostics.AzureStorage.ICloudBlobContainer
// COMPONENT DESC:  	
//
// CREATED DATE/BY:  08 June 2012 / Lu Ya Ming
//
// REVISION HISTORY:	
// DATE/BY			SR#/CS/PM#/OTHERS		DESCRIPTION OF CHANGE
// ==================================================================================================

#endregion

namespace NCS.IConnect.Cloud.Core.AzureStorage
{
    /// <summary>
    /// The interface of cloud blob container.
    /// </summary>
    public interface ICloudBlobContainer
    {
        /// <summary>
        /// Gets the service client.
        /// </summary>
        /// <value>
        /// The service client.
        /// </value>
        ICloudBlobClient ServiceClient { get; }

        /// <summary>
        /// Creates if not exist.
        /// </summary>
        void CreateIfNotExist();

        /// <summary>
        /// Gets the page BLOB reference.
        /// </summary>
        /// <param name="blobAddressUri">The BLOB address URI.</param>
        /// <returns></returns>
        ICloudPageBlob GetPageBlobReference(string blobAddressUri);

        /// <summary>
        /// Gets the BLOB reference.
        /// </summary>
        /// <param name="blobAddressUri">The BLOB address URI.</param>
        /// <returns></returns>
        ICloudBlob GetBlobReference(string blobAddressUri);
    }
}
